package com.sz.stock.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class EntrustExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EntrustExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStockEntrustIdIsNull() {
            addCriterion("STOCK_ENTRUST_ID is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdIsNotNull() {
            addCriterion("STOCK_ENTRUST_ID is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_ID =", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_ID <>", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_ID >", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_ID >=", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_ID <", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_ID <=", value, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_ID in", values, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_ID not in", values, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_ID between", value1, value2, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustIdNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_ID not between", value1, value2, "stockEntrustId");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridIsNull() {
            addCriterion("STOCK_ENTRUST_USERID is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridIsNotNull() {
            addCriterion("STOCK_ENTRUST_USERID is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID =", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID <>", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID >", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID >=", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID <", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_USERID <=", value, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_USERID in", values, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_USERID not in", values, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_USERID between", value1, value2, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_USERID not between", value1, value2, "stockEntrustUserid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateIsNull() {
            addCriterion("STOCK_ENTRUST_OPERATE is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateIsNotNull() {
            addCriterion("STOCK_ENTRUST_OPERATE is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE =", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE <>", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE >", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE >=", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateLessThan(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE <", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE <=", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateLike(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE like", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateNotLike(String value) {
            addCriterion("STOCK_ENTRUST_OPERATE not like", value, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_OPERATE in", values, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_OPERATE not in", values, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_OPERATE between", value1, value2, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustOperateNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_OPERATE not between", value1, value2, "stockEntrustOperate");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeIsNull() {
            addCriterion("STOCK_ENTRUST_CODE is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeIsNotNull() {
            addCriterion("STOCK_ENTRUST_CODE is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CODE =", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CODE <>", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_CODE >", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CODE >=", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeLessThan(String value) {
            addCriterion("STOCK_ENTRUST_CODE <", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CODE <=", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeLike(String value) {
            addCriterion("STOCK_ENTRUST_CODE like", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeNotLike(String value) {
            addCriterion("STOCK_ENTRUST_CODE not like", value, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_CODE in", values, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_CODE not in", values, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_CODE between", value1, value2, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCodeNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_CODE not between", value1, value2, "stockEntrustCode");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyIsNull() {
            addCriterion("STOCK_ENTRUST_COMPANY is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyIsNotNull() {
            addCriterion("STOCK_ENTRUST_COMPANY is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY =", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY <>", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY >", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY >=", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyLessThan(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY <", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY <=", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyLike(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY like", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyNotLike(String value) {
            addCriterion("STOCK_ENTRUST_COMPANY not like", value, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_COMPANY in", values, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_COMPANY not in", values, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_COMPANY between", value1, value2, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCompanyNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_COMPANY not between", value1, value2, "stockEntrustCompany");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyIsNull() {
            addCriterion("STOCK_ENTRUST_MONEY is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyIsNotNull() {
            addCriterion("STOCK_ENTRUST_MONEY is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyEqualTo(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY =", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyNotEqualTo(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY <>", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyGreaterThan(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY >", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY >=", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyLessThan(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY <", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("STOCK_ENTRUST_MONEY <=", value, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyIn(List<BigDecimal> values) {
            addCriterion("STOCK_ENTRUST_MONEY in", values, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyNotIn(List<BigDecimal> values) {
            addCriterion("STOCK_ENTRUST_MONEY not in", values, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_ENTRUST_MONEY between", value1, value2, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("STOCK_ENTRUST_MONEY not between", value1, value2, "stockEntrustMoney");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountIsNull() {
            addCriterion("STOCK_ENTRUST_AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountIsNotNull() {
            addCriterion("STOCK_ENTRUST_AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT =", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT <>", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT >", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT >=", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT <", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_AMOUNT <=", value, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_AMOUNT in", values, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_AMOUNT not in", values, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_AMOUNT between", value1, value2, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_AMOUNT not between", value1, value2, "stockEntrustAmount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumIsNull() {
            addCriterion("STOCK_ENTRUST_NUM is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumIsNotNull() {
            addCriterion("STOCK_ENTRUST_NUM is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM =", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM <>", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM >", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM >=", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM <", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_NUM <=", value, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_NUM in", values, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_NUM not in", values, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_NUM between", value1, value2, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustNumNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_NUM not between", value1, value2, "stockEntrustNum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeIsNull() {
            addCriterion("STOCK_ENTRUST_TIME is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeIsNotNull() {
            addCriterion("STOCK_ENTRUST_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TIME =", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TIME <>", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_TIME >", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TIME >=", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeLessThan(String value) {
            addCriterion("STOCK_ENTRUST_TIME <", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TIME <=", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeLike(String value) {
            addCriterion("STOCK_ENTRUST_TIME like", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeNotLike(String value) {
            addCriterion("STOCK_ENTRUST_TIME not like", value, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_TIME in", values, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_TIME not in", values, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_TIME between", value1, value2, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTimeNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_TIME not between", value1, value2, "stockEntrustTime");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusIsNull() {
            addCriterion("STOCK_ENTRUST_STATUS is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusIsNotNull() {
            addCriterion("STOCK_ENTRUST_STATUS is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_STATUS =", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_STATUS <>", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_STATUS >", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_STATUS >=", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusLessThan(String value) {
            addCriterion("STOCK_ENTRUST_STATUS <", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_STATUS <=", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusLike(String value) {
            addCriterion("STOCK_ENTRUST_STATUS like", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusNotLike(String value) {
            addCriterion("STOCK_ENTRUST_STATUS not like", value, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_STATUS in", values, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_STATUS not in", values, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_STATUS between", value1, value2, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStatusNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_STATUS not between", value1, value2, "stockEntrustStatus");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumIsNull() {
            addCriterion("STOCK_ENTRUST_TRANSNUM is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumIsNotNull() {
            addCriterion("STOCK_ENTRUST_TRANSNUM is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM =", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM <>", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM >", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM >=", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM <", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_TRANSNUM <=", value, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_TRANSNUM in", values, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_TRANSNUM not in", values, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_TRANSNUM between", value1, value2, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTransnumNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_TRANSNUM not between", value1, value2, "stockEntrustTransnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumIsNull() {
            addCriterion("STOCK_ENTRUST_CANCELNUM is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumIsNotNull() {
            addCriterion("STOCK_ENTRUST_CANCELNUM is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM =", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM <>", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM >", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM >=", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM <", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_CANCELNUM <=", value, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_CANCELNUM in", values, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_CANCELNUM not in", values, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_CANCELNUM between", value1, value2, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustCancelnumNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_CANCELNUM not between", value1, value2, "stockEntrustCancelnum");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketIsNull() {
            addCriterion("STOCK_ENTRUST_TRADMARKET is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketIsNotNull() {
            addCriterion("STOCK_ENTRUST_TRADMARKET is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET =", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET <>", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET >", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET >=", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketLessThan(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET <", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET <=", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketLike(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET like", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketNotLike(String value) {
            addCriterion("STOCK_ENTRUST_TRADMARKET not like", value, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_TRADMARKET in", values, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_TRADMARKET not in", values, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_TRADMARKET between", value1, value2, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustTradmarketNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_TRADMARKET not between", value1, value2, "stockEntrustTradmarket");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountIsNull() {
            addCriterion("STOCK_ENTRUST_ACCOUNT is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountIsNotNull() {
            addCriterion("STOCK_ENTRUST_ACCOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT =", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT <>", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT >", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT >=", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountLessThan(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT <", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT <=", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountLike(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT like", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountNotLike(String value) {
            addCriterion("STOCK_ENTRUST_ACCOUNT not like", value, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_ACCOUNT in", values, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_ACCOUNT not in", values, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_ACCOUNT between", value1, value2, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustAccountNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_ACCOUNT not between", value1, value2, "stockEntrustAccount");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidIsNull() {
            addCriterion("STOCK_ENTRUST_CONTRACTID is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidIsNotNull() {
            addCriterion("STOCK_ENTRUST_CONTRACTID is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID =", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidNotEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID <>", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidGreaterThan(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID >", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidGreaterThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID >=", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidLessThan(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID <", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidLessThanOrEqualTo(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID <=", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidLike(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID like", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidNotLike(String value) {
            addCriterion("STOCK_ENTRUST_CONTRACTID not like", value, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_CONTRACTID in", values, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidNotIn(List<String> values) {
            addCriterion("STOCK_ENTRUST_CONTRACTID not in", values, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_CONTRACTID between", value1, value2, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustContractidNotBetween(String value1, String value2) {
            addCriterion("STOCK_ENTRUST_CONTRACTID not between", value1, value2, "stockEntrustContractid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidIsNull() {
            addCriterion("STOCK_ENTRUST_STOCKID is null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidIsNotNull() {
            addCriterion("STOCK_ENTRUST_STOCKID is not null");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID =", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidNotEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID <>", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidGreaterThan(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID >", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidGreaterThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID >=", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidLessThan(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID <", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidLessThanOrEqualTo(Integer value) {
            addCriterion("STOCK_ENTRUST_STOCKID <=", value, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_STOCKID in", values, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidNotIn(List<Integer> values) {
            addCriterion("STOCK_ENTRUST_STOCKID not in", values, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_STOCKID between", value1, value2, "stockEntrustStockid");
            return (Criteria) this;
        }

        public Criteria andStockEntrustStockidNotBetween(Integer value1, Integer value2) {
            addCriterion("STOCK_ENTRUST_STOCKID not between", value1, value2, "stockEntrustStockid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}